home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Textdisplayers / Vinci / Install < prev    next >
Text File  |  1996-09-26  |  5KB  |  311 lines

  1. ; *******************************************************************
  2. ;
  3. ; $VER: Install_Vinci 2.2 (6.2.96)
  4. ; Install script for Vinci copyright © 1995-1996 Martin Wulffeld
  5. ;
  6. ; *******************************************************************
  7.  
  8. (set old_level @user-level)
  9. (set @default-dest "")
  10.  
  11. (set default_lang 1)
  12.  
  13. (set #bad-kick
  14. (cat "You must at least have Kickstart 2.04 to install Vinci!"
  15. ))
  16.  
  17. (set #copying-reqtoools        "Copying reqtools.library 38.1296 to LIBS:...")
  18. (set #copying-unpack        "Copying unpack.library 42.71 to LIBS:...")
  19. (set #copying-vinci            "Copying Vinci...")
  20. (set #copying-tools            "Copying Support Tools...")
  21. (set #copying-documentation    "Copying Vinci documentation...")
  22. (set #copying-icons            "Copying icons...")
  23. (set #copying-catalogs        "Copying catalogs...")
  24. (set #copying-rexxscripts    "Copying rexx scripts...")
  25. (set #exchange-icons        "Would you like to exchange the standard icons with the MagicWB icons?")
  26. (set #which-kind            "Which kind?")
  27. (set #select-dest            "Please select the path where you want to install Vinci along with the acompanying documentation and other files. A drawer named Vinci will be created there.")
  28. (set #select-destrexx        "Please select the path where you want to install the Rexx scripts. A drawer named Vinci will be created there.")
  29.  
  30. (set #which-language
  31. (cat "\nWhich languages should be installed?"
  32. ))
  33. (set #which-language-help
  34. (cat "\nThe Amiga can be operated in many different"
  35.       " languages. If you want Vinci to use the"
  36.      " same language as the Amiga Workbench"
  37.       " then a catalog file must be copied to your"
  38.       " harddisk for each language supported.\n\n"
  39.       "To reduce the amount of space consumed by the"
  40.       " language files, you can select to have only the"
  41.       " files of specific languages copied.\n\n"
  42.       "Simply check the boxes of the languages you wish"
  43.       " to have available on your system.\n\n"
  44.       @askoptions-help
  45. ))
  46.  
  47. ;=============================================================================
  48. ; Make sure we are running under a 2.04 ROM
  49.  
  50. (if (< (/ (getversion) 65536) 37)
  51. (
  52.     (abort #bad-kick)
  53. ))
  54.  
  55. ;=============================================================================
  56.  
  57. ;*** Required libraries
  58.  
  59. (copylib
  60.     (prompt "\n" #copying-reqtools)
  61.     (help @copylib-help)
  62.     (source "Libs/reqtools.library")
  63.     (dest "LIBS:")
  64.     (confirm)
  65. )
  66.  
  67. (copylib
  68.     (prompt "\n" #copying-unpack)
  69.     (help @copylib-help)
  70.     (source "Libs/unpack.library")
  71.     (dest "LIBS:")
  72.     (confirm)
  73. )
  74.  
  75. ;*** Vinci executable
  76.  
  77. (set programdir
  78.     (tackon
  79.         (askdir
  80.             (prompt  #select-dest)
  81.             (help @askdir-help)
  82.             (default "SYS:")
  83.             (newpath)
  84.         )
  85.         "Vinci"
  86.     )
  87. )
  88.  
  89. (makedir programdir
  90.     (infos)
  91. )
  92.  
  93. (set @default-dest programdir)
  94.  
  95. (copyfiles
  96.     (prompt "\n" #copying-vinci)
  97.     (source "Vinci")
  98.     (dest programdir)
  99.     (infos)
  100. )
  101.  
  102. ;*** Vinci AppIcon
  103.  
  104. (copyfiles
  105.     (prompt "\n" #copying-vinci)
  106.     (source "Vinci_APPICON.info")
  107.     (dest programdir)
  108. )
  109.  
  110. ;*** Support tools
  111.  
  112. (set toolsdir
  113.     (tackon
  114.         programdir
  115.         "Support Tools"
  116.     )
  117. )
  118.  
  119. (makedir toolsdir
  120.     (infos)
  121. )
  122.  
  123. (copyfiles
  124.     (prompt "\n" #copying-tools)
  125.     (source "Support Tools")
  126.     (pattern "#?")
  127.     (dest toolsdir)
  128.     (infos)
  129. )
  130.  
  131. ;*** Documentation files
  132.  
  133. (set docdir
  134.     (tackon
  135.         programdir
  136.         "Documentation"
  137.     )
  138. )
  139.  
  140. (makedir docdir
  141.     (infos)
  142. )
  143.  
  144. (copyfiles
  145.     (prompt "\n" #copying-documentation)
  146.     (source "Documentation/Vinci.guide")
  147.     (dest docdir)
  148.     (infos)
  149. )
  150.  
  151. (copyfiles
  152.     (prompt "\n" #copying-documentation)
  153.     (source "Documentation/Vinci.regform")
  154.     (dest docdir)
  155.     (infos)
  156. )
  157.  
  158. ;*** Copy icons
  159.  
  160. (set iconsdir
  161.     (tackon
  162.         programdir
  163.         "MagicWB Icons"
  164.     )
  165. )
  166.  
  167. (makedir iconsdir
  168.     (infos)
  169. )
  170.  
  171. (copyfiles
  172.     (prompt "\n" #copying-icons)
  173.     (source "MagicWB Icons")
  174.     (pattern "#?")
  175.     (dest iconsdir)
  176.     (infos)
  177. )
  178.  
  179. ;*** Exchange with MagicWB icons
  180.  
  181. (set mwbicons
  182.     (askbool
  183.         (prompt "\n" #exchange-icons)
  184.         (help "")
  185.     )
  186. )
  187.  
  188. (if mwbicons
  189. (
  190.     (set whichkind
  191.         (askchoice
  192.             (prompt "\n" #which-kind)
  193.             (help "")
  194.             (choices "Ancient" "Modern")
  195.         )
  196.     )
  197.     
  198.     (if (= whichkind 0)
  199.         (
  200.             (set magicwbdir
  201.                 (tackon
  202.                     iconsdir
  203.                     "Ancient"
  204.                 )
  205.             )
  206.             (copyfiles
  207.                 (prompt "\n" #copying-icons)
  208.                 (source magicwbdir)
  209.                 (pattern "#?")
  210.                 (dest programdir)
  211.             )
  212.         )
  213.         (
  214.             (set magicwbdir
  215.                 (tackon
  216.                     iconsdir
  217.                     "Modern"
  218.                 )
  219.             )
  220.             (copyfiles
  221.                 (prompt "\n" #copying-icons)
  222.                 (source magicwbdir)
  223.                 (pattern "#?")
  224.                 (dest programdir)
  225.             )
  226.         )
  227.     )
  228. ))
  229.  
  230. ;*** Copy Catalogs to Vinci dir for backup
  231.  
  232. (set catalogdir
  233.     (tackon
  234.         programdir
  235.         "Catalogs"
  236.     )
  237. )
  238.  
  239. (makedir catalogdir
  240. )
  241.  
  242. (copyfiles
  243.     (prompt "\n" #copying-catalogs)
  244.     (source "Catalogs")
  245.     (pattern "#?")
  246.     (dest catalogdir)
  247. )
  248.  
  249. ;*** Copy rexx scripts
  250.  
  251. (set rexxdir
  252.     (tackon
  253.         (askdir
  254.             (prompt  #select-destrexx)
  255.             (help @askdir-help)
  256.             (default "REXX:")
  257.             (newpath)
  258.         )
  259.         "Vinci"
  260.     )
  261. )
  262.  
  263. (makedir rexxdir
  264. )
  265.  
  266. (copyfiles
  267.     (prompt "\n" #copying-rexxscripts)
  268.     (source "Rexx")
  269.     (pattern "#?")
  270.     (dest rexxdir)
  271. )
  272.  
  273. ;*** Install locale file
  274.  
  275. (if (exists "SYS:Locale")
  276. (
  277.     (if (exists "LOCALE:")
  278.     (
  279.         (set lang (askoptions (prompt #which-language)
  280.                                 (help #which-language-help)
  281.                                 (choices
  282.                                     "Dansk"
  283.                                     "English")
  284.                                 (default default_lang)
  285.                     )
  286.         )
  287.         
  288.         (set n 0)
  289.         (while
  290.             (set language (select n
  291.                                 "dansk"
  292.                                 "")
  293.             )
  294.         (
  295.             (if (IN lang n)
  296.             (
  297.                 (if (< n 2)
  298.                 (
  299.                     (makedir (cat "LOCALE:Catalogs/" language))
  300.                     (copyfiles (source (cat "Catalogs/" language))
  301.                                 (dest (cat "LOCALE:Catalogs/" language))
  302.                                 (all)
  303.                     )
  304.                 ))
  305.             ))
  306.             (set n (+ n 1))
  307.         ))
  308.     ))
  309. ))
  310.